# import os

# print('Process (%s) start...' % os.getpid())
# pid = os.fork()
# if pid == 0:
#     print('I am child process (%s) and my parent is %s.' % (os.getpid(), os.getppid()))
# else:
#     print('I (%s) just created a child process (%s).' % (os.getpid(), pid))

from multiprocessing import Process
import os


def run_proc(name):
	print('run child process %s' % os.getpid())


if __name__ == '__main__':
	print('parent process %s' % os.getpid())
	p = Process(target=run_proc, args=('test',))
	print('child process is start')
	p.start()
	p.join()
	print('child process end')
